﻿@theme: "../refs/";

@import "@{theme}variables.less";
@import "@{theme}mixins.less";

@border-bottom-color: #D2D2D2;

.page {
    /*product selector*/
    .product-selectors {
        background: @breadcrumb-bg;
        padding: @breadcrumb-padding-vertical @breadcrumb-padding-horizontal;
        border: 1px solid #8B8B8B;

        .product-viewmode, .product-sorting, .product-page-size {
            float: left;
            margin-right: 20px;

            span, .form-control {
                float: left;
                width: auto;
                height: 30px;
                line-height: 30px;
                padding-top: 0;
                padding-bottom: 0;
                margin: 0 5px;
            }

            select.form-control {
                padding-right: 0;
                padding-left: 5px;
            }
        }
    }

    .product-filters-wrapper {
        .product-filters {
            .clearfix();
            padding: 5px 0;

            li {
                float: left;

                a {
                    text-decoration: none;
                    display: block;
                    height: 25px;
                    padding: 0 5px;
                    line-height: 25px;

                    &:hover {
                        border-top: 1px solid @gray-light;
                        border-bottom: 1px solid @gray-light;
                        .box-shadow(0 0 3px @gray);
                    }
                }
            }
        }

        .filter-title, .title {
            float: left;
            margin-right: 10px;
            padding: 7px 0;
            width: 120px;
            text-align: right;
            font-size:13px;
        }

        .filter-content, .available-items {
            //float: left;
            margin-bottom: 0;
            padding: 5px 0;
        }

        .remove-filter {
            float: left;
            margin: 0 5px 0 20px;
            padding: 0;
            width: 100px;

            a {
                display: block;
                height: 25px;
                line-height: 25px;
                text-align: center;
            }
        }
        /*product price filter*/
        .price-range-filter {
            border-bottom: 1px dashed @border-bottom-color;

            li {
                margin: 0 5px;
            }

            .selected-price-range {
                float: left;
                margin: 0 5px;
            }
        }
        /*product speficication filter*/
        .product-spec-filter {
            padding: 0;

            .group {
                .clearfix();
                width: 100%;
                border-top: 1px dashed @border-bottom-color;
                margin: 0;
                position: relative;
                padding-left: 130px;

                &:first-child {
                    border-top: 0;
                }

                .title {
                    position: absolute;
                    left: 0;
                    top: 0;
                    width:120px;
                }

                &.color-list {
                    .item a {
                        text-indent: -9999px;
                        width: 26px;
                        height: 20px;
                        border: 1px solid #ccc;
                    }
                }

                .pa_000001 {
                    /*background: #000 url(i/single/multicolor.png) no-repeat !important;*/
                    background: #000 url(../images/icon-sprites.png) no-repeat 0 -87px !important;
                }

                .pa_000002 {
                    /*background: #000 url(i/single/white-black.png) no-repeat !important;*/
                    background: #000 url(../images/icon-sprites.png) no-repeat 0 -53px !important;
                }

                .pa_000003 {
                    /*background: #000 url(i/single/white-othercolor.png) no-repeat !important;*/
                    background: #000 url(../images/icon-sprites.png) no-repeat 0 -159px !important;
                }

                .pa_000004 {
                    /*black-othercolor*/
                    background: #000 url(../images/icon-sprites.png) no-repeat 0 -123px !important;
                }

                .item {
                    margin: 5px;
                }
            }

            .filter-content {
                width: 100%;
            }

            .available-items, .available-items-extended {
                width: 100%;
                padding: 0;
                clear: both;
            }

            .available-items {
                padding-bottom: 15px;
            }

            .available-items-extended {
                border-top: 2px solid @brand-primary;
                position: relative;

                .group {
                    display: none;
                }

                .group:nth-child(2) {
                    border-top: none !important;
                }

                .more-filters {
                    position: absolute;
                    right: 10px;
                    top: -20px;
                    font-weight: bold;
                    background-color: #353535;
                    border: 2px solid rgba(144, 144, 144, 0.8);

                    &:hover {
                        background-color: #910000;
                    }
                }
            }

            li {
                margin: 0 5px;
            }
        }
        /*product specification attribute filter panel*/
        .product-spec-remove-panel {
            border-bottom: 1px dashed @border-bottom-color;
            background-color: #f0f0f0;
            border-right: 1px solid @brand-primary;

            .already-filtered-items {
                .item {
                    margin: 5px;
                    background-color: @gray;

                    strong, span {
                        display: block;
                        float: left;
                        padding: 2px 5px;
                        height: 16px;
                        line-height: 14px;
                    }
                }
            }

            .remove-filter {
                .clearfix();
                margin-top: 5px;
                margin-left: 5px;
            }
        }
    }
}
